package ru.spbu.math.android.cbrf.model;

/**
 * Model for keeping constant data
 * 
 * @author Svetlana Zemlyanskaya
 */

public class StockItem {

	private String code; // USD
	private String name; // US Dollar
	private int nominalValue; // 1 or 100
	private String nominalName; // USD for US Dollar or barrel for Oil

	public StockItem() {
		code = "";
		name = "";
		nominalValue = 0;
		nominalName = "";
	}

	public StockItem(String code, String name, int nominalValue,
			String nominalName) {
		this.code = code;
		this.name = name;
		this.nominalValue = nominalValue;
		this.nominalName = nominalName;
	}

	/**
	 * @return StockItem code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @return StockItem name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return StockItem nominal value
	 */
	public int getNominalValue() {
		return nominalValue;
	}

	/**
	 * @return StockItem nominal name
	 */
	public String getNominalName() {
		return nominalName;
	}

	/**
	 * @param new StockItem code
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @param new StockItem name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param new StockItem nominal value
	 */
	public void setNominalValue(int nominalValue) {
		this.nominalValue = nominalValue;
	}

	/**
	 * @param new StockItem nominal name
	 */
	public void setNominalName(String nominalName) {
		this.nominalName = nominalName;
	}

	@Override
	public String toString() {
		return code;
	}

}
